package com._520it.crm.query;

import com.alibaba.druid.util.StringUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * Created by 呆 on 2017/10/3.
 */
@Setter@Getter

public class OrderBillQueryObject extends QueryObject {
    private String organizationName;
    private String produtName;
    private String applyClientName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date minApplyTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date maxApplyTime;
    private String insurancePolicyNumber;
    private String carNumber;
    private String engineNumber;
    private String mainChassis;
    private String inputUser;
    private String beApplyClientName;
    private Integer state;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date applyTime_beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date applyTime_endTime;
    private String idCardNumber;
    private String orderBillNumber;
    private Long organizationId;
    private Long productId;
    private String realName;
    public String getIdCardNumber() {
        return StringUtils.isEmpty(idCardNumber)?null:idCardNumber;
    }
    public String getOrderBillNumber() {
        return StringUtils.isEmpty(orderBillNumber)?null:orderBillNumber;
    }
    public String getRealName() {
        return StringUtils.isEmpty(realName)?null:realName;
    }
    public String getOrganizationName() {
        return StringUtils.isEmpty(organizationName)?null:organizationName;
    }

    public String getProdutName() {
        return StringUtils.isEmpty(produtName)?null:produtName;
    }

    public String getApplyClientName() {
        return StringUtils.isEmpty(applyClientName)?null:applyClientName;
    }

    public String getInsurancePolicyNumber() {
        return StringUtils.isEmpty(insurancePolicyNumber)?null:insurancePolicyNumber;
    }

    public String getCarNumber() {
        return StringUtils.isEmpty(carNumber)?null:carNumber;
    }

    public String getBeApplyClientName() {
        return StringUtils.isEmpty(beApplyClientName)?null:beApplyClientName;
    }
    public String getEngineNumber() {
        return StringUtils.isEmpty(engineNumber)?null:engineNumber;
    }
    public String getMainChassis() {
        return StringUtils.isEmpty(mainChassis)?null:mainChassis;
    }
    public String getInputUser() {
        return StringUtils.isEmpty(inputUser)?null:inputUser;
    }
    public Integer getState(){
        if (this.state==null||state<0){
            System.out.println(state);
            return null;
        }else {
            return this.state;
        }
    }

}
